import { fileURLToPath, URL } from 'node:url'

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
<<<<<<< HEAD
=======
import vueJsx from '@vitejs/plugin-vue-jsx'
>>>>>>> a4bf6cb (第一次提交)
import vueDevTools from 'vite-plugin-vue-devtools'

// https://vitejs.dev/config/
export default defineConfig({
<<<<<<< HEAD
  plugins: [
    vue(),
    vueDevTools(),
  ],
=======
  plugins: [vue(), vueJsx(), vueDevTools()],
>>>>>>> a4bf6cb (第一次提交)
  resolve: {
    alias: {
      '@': fileURLToPath(new URL('./src', import.meta.url))
    }
<<<<<<< HEAD
=======
  },
  server: {
    proxy: {
      '/api': {
        target: 'https://heimahr.itheima.net/',
        changeOrigin: true
      }
    }
>>>>>>> a4bf6cb (第一次提交)
  }
})
